﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="position_list.aspx.cs"
    Inherits="He.Web.manage.ad.position_list" %>

<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>广告位列表</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_list runat="server" ID="uchead_list" />
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="position_edit.aspx">增加广告位</a></span><b>您当前的位置：管理中心 &gt; 广告管理
            &gt; 广告位列表</b></div>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="6%">
                        选择
                    </th>
                    <th width="5%">
                        编号
                    </th>
                    <th>
                        广告位名称
                    </th>
                    <th width="8%">
                        调用标识
                    </th>
                    <th width="8%">
                        展示效果
                    </th>
                    <th width="8%">
                        更改效果
                    </th>
                    <th width="10%">
                        尺寸
                    </th>
                    <th width="10%">
                        链接目标
                    </th>
                    <th width="8%">
                        语言版本
                    </th>
                    <th width="8%">
                        状态
                    </th>
                    <th width="8%">
                        管理操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" /><asp:Label ID="lb_id"
                        runat="server" Text='<%#Eval("id")%>' Visible="false"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("Id")%>'></asp:Label>
                </td>
                <td>
                    <%#Eval("title")%>
                </td>
                <td>
                    <%#Eval("call_mark") %>
                </td>
                <td>
                    <%#Eval("display_effect") %>
                </td>
                <td>
                    <%#Eval("allow_set_effect").ToString() == "1" ? "<img title=\"开启\" src=\"../images/correct.gif\" />" : "<image title=\"关闭\" src=\"../images/disable.gif\" />"%>
                </td>
                <td>
                    <%#Eval("ad_width").ToString()%>×<%#Eval("ad_height").ToString()%>
                </td>
                <td>
                    <%#Eval("ad_target")%>
                </td>
                <td>
                    <%#He.Web.UI.LangHelper.GetLangVer(Eval("lang"))%>
                </td>
                <td>
                    <%#Convert.ToInt32(Eval("ad_status")) == 1 ? "<img title=\"开启\" src=\"../images/correct.gif\" />":"<image title=\"关闭\" src=\"../images/disable.gif\" />" %>
                </td>
                <td>
                    <span><a href="position_edit.aspx?action=<%=He.Web.UI.Enums.ActionEnum.Edit %>&id=<%#Eval("id") %>">
                        修改</a>&nbsp;<%--<a href="AdvView.aspx?id=<%#Eval("ID") %>">调用</a>&nbsp;<a href="AdvEdit.aspx?id=<%#Eval("ID") %>">编辑</a>--%></span>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="spClear">
    </div>
    <div style="line-height: 30px; height: 30px;">
        <%=He.Web.UI.HtmlHelper.PagerText(pcount,pagesize , page, "?page=__id__")%>
        <div class="left">
            <span class="btn_all" onclick="CheckAll(this)">全 选</span> <span class="btn_bg">
                <asp:LinkButton ID="lbtnDel" runat="server" OnClientClick="return confirm( '此操作将会删除这些广告位及以下的所有广告，确定要删除吗？ ');"
                    OnClick="lbtnDel_Click">删 除</asp:LinkButton>
            </span>
        </div>
    </div>
    </form>
</body>
</html>
